package com.ywl.task.controller;

import com.ywl.task.service.UserService;
import com.ywl.task.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 严伟伦
 * @Company 无
 * @Description
 * @Date: 2024/9/5 20:08
 */
@RestController
@RequestMapping("/user")
@CrossOrigin
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/list")
    public QdResult queryAllUser(){
        return userService.queryAllUser();
    }
}
